
/*
 * ConnectionFromPool.java
 *
 * Created on 20. Juli 2004, 10:54
 */

package picturetaker.persistence;

import java.sql.*;
import java.util.logging.*;

import javax.naming.NamingException;

/**
 * 
 * @author 
 */
public class ConnectionFromPool {
    
    static Logger mLog = Logger.getLogger("ConnectionFromPool");
    public static int active;
    public static int idle;
    
  /** Creates a new instance of ConnectionFromPool */

  public ConnectionFromPool() {
  }

  /**
   * Holt sich eine neue Connection aus Connectionpool
   * 
   * @return Connection
   * @throws NamingException
   * @throws SQLException
   * @deprecated Use {@link JNDIFactory#getConnection(String)} instead
   */
  public static Connection getConnection(String Datasource) throws NamingException, SQLException {
    return JNDIFactory.getInstance().getConnection(Datasource);
}
}